/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 spell_effect_window.h

	$Header: /heroes4/spell_effect_window.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( SPELL_EFFECT_WINDOW_H_INCLUDED )
#define SPELL_EFFECT_WINDOW_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "animated_window.h"
#include "combat_creature_ptr.h"
#include "counted_animation.h"

enum t_spell;

class t_spell_effect_window : public t_animated_window, public t_counted_animation
{
public:
	t_spell_effect_window( t_combat_creature* creature,
		                   t_animation_ptr const& bitmaps, t_screen_point point, 
		                   int speed = 100,
		                   t_window* parent = 0 );
	virtual void on_animation_end();
protected:
	t_combat_creature_ptr m_creature;
};

typedef t_counted_ptr< t_spell_effect_window > t_spell_effect_window_ptr;

t_animation_ptr get_spell_animation( t_spell spell, double scale );

#endif